x86/hvm: reset TSC to 0 after domain resume from S3
authorTomasz Wroblewski <tomasz.wroblewski@citrix.com>
Fri, 22 Nov 2013 13:47:24 +0000 (14:47 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 22 Nov 2013 13:47:24 +0000 (14:47 +0100)
commite95dc6ba69daef6468b3ae5912710727244d6e2f
tree2e34c12772d1b9a0dee35b8b2772d8a88b8222b1
parent3ae607c381f83fd9256d4b9d6dd3bfdd5f3612f7
x86/hvm: reset TSC to 0 after domain resume from S3

Host S3 implicitly resets the host TSC to 0, but the tsc offset for hvm
domains is not recalculated when they resume, causing it to go into
negative values. In Linux guest using tsc clocksource, this results in
a hang after wrap back to positive values since the tsc clocksource
implementation expects it reset.

Signed-off-by: Tomasz Wroblewski <tomasz.wroblewski@citrix.com>
xen/arch/x86/hvm/hvm.c